#%RAML 1.0


# --------------------------------------------------
# Useful links:
# - [RAML 1.0 Language Spec](https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md)
# - [Atom Plugin: API Workbench](https://atom.io/packages/api-workbench)
# --------------------------------------------------

title: 消息
version: v1

# Will prefixes all resource paths
baseUri: /news

uses:
  baseTraits: traits/index.raml
  annotations: annotations/index.raml
  
            
/list:
  get:
    description: 获取消息列表
    queryParameters:
      pageSize:
        description: 每页条数
        type: string
        required: true
      pageNow:
        description: 当前页
        type: string
        required: true
    responses:
      200:
        body:
          application/json:
            example: !include examples/news/list.json
            
/detail:
  get:
    description: 获取单个消息详情
    queryParameters:
      userId:
        description: 用户Id
        type: string
        required: true
    responses:
      200:
        body:
          application/json:
            example: !include examples/news/deatil.json
            